<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>

 	<script type="text/javascript" charset="utf-8" src="Lib/editor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="Lib/editor/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="Lib/editor/lang/zh-cn/zh-cn.js"></script>

    <style type="text/css">
        div{
            width:100%;
        }
    </style>
</head>
<body>
	<h1>添加文章</h1>
	<form action="" method="post">
		<p>文章标题：<input type="text" name="title"></p>
		<p>所属栏目：
			<select name="cat_id" id="">
				{foreach $data as $k=>$v}
				<option value="{$v.cat_id}">{$v.cat_name}</option>
				{/foreach}
			</select>
		</p>
		文章内容：
		<textarea name="content" id="editor" cols="30" rows="10" placeholder="请输入文章内容"></textarea>
		<input type="submit" value="提交">
	</form>

</body>
<script type="text/javascript">
    var ue = UE.getEditor('editor');    
</script>
</html>